package com.csdj.web.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * packageName com.csdj.web.listener
 *
 * @author winver
 * @version 1.0
 * @className MySessionListener
 * @date 2024/11/28
 * @description TODO
 */
@WebListener
public class AMySessionListener1 implements HttpSessionListener {
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        System.out.println("我是第二个会话监听器" + se.getSession().getId());
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        System.out.println("会话对象被销毁了"+ se.getSession().getId());
    }
}
